﻿using ArrayListTeat;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ArrayListTeat
{
    class Program
    {
        static void Main(string[] args)
        {  
            ArrayList arr = new ArrayList() { "永远嘀神", "UZI", 006, 001, 002 };
            int index = arr.IndexOf("UZI");
            if (index != -1)
            {
                Console.WriteLine("存在UZI");
            }
            else
            {
                Console.WriteLine("不存在UZI");
            }
            ArrayList insertList = new ArrayList() { "狂", "小", "狗" };
            arr.InsertRange(1, insertList);
            foreach (var v in arr)
            {
                Console.Write(v + ",");
            }
            ArrayList list = new ArrayList() { "001", "002", "006" };
            list.Sort();
            foreach (var v in list)
            {
                Console.WriteLine(v);
            }
        }
    }
}